package cn.edu.scau.cmi.yanweijie.combination;

public class Person2 implements Component2{
	@Override
	public void Speak() {
		System.out.println("i'm a person");
	}
	public String Name="个人";
	
	public String Type = "个人";
	
	public Integer generation = 0;
	
	public String FatherName = null;
	
	public Person2() {
	}

	public Person2(String name) {
		this.Name=name;
	}
	
	public void setName(String name) {
		Name = name;
	}
	
	public String getFatherName() {
		return FatherName;
	}

	public void setFatherName(String fatherName) {
		FatherName = fatherName;
	}

	public String getName() {
		return this.Name;
	}

	public String getType() {
		return Type;
	}

	public void setType(String type) {
		Type = type;
	}

	public Integer getGeneration() {
		return generation;
	}

	public void setGeneration(Integer generation) {
		this.generation = generation;
	}

	@Override
	public String toString() {
		return "Person [Name=" + Name + ", Type=" + Type + ", generation=" + generation + ", FatherName=" + FatherName
				+ "]";
	}
}
